package novel.front.novellist.service;

import novel.common.page.PageInfo;
import novel.common.page.PageParam;
import novel.front.novellist.entity.LiebaoApp;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * Created by 888 on 2017/2/13.
 */
public interface LiebaoAppService {
    void saveAppList(List<LiebaoApp> liebaoAppList);

    void save(LiebaoApp liebaoApp);

    void update(LiebaoApp liebaoApp);

    List<LiebaoApp>  searchApp(LiebaoApp LiebaoApp,String redisKey);

    List<LiebaoApp>  getList(LiebaoApp LiebaoApp);

    LiebaoApp getAppByName( String appName);

    List<LiebaoApp>  getListByCategoryId(int categoryId);

    List<LiebaoApp> getListDesc(int offset,int limit);

    List<LiebaoApp> getListRandom();

    PageInfo<LiebaoApp> getListByPage(LiebaoApp liebaoapp,PageParam pageParam);

    LiebaoApp selectByPrimaryKey(Integer id);

    List<Map<String, String>> getTagPercent();
}

